package com.dlc.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dlc.shop.bean.app.dto.UserCollectionShopDto;
import com.dlc.shop.bean.model.UserCollectionShop;
import com.dlc.shop.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

/**
 * 用户店铺收藏记录
 *
 * @author LGH
 * @date 2019-09-25 15:38:30
 */
public interface UserCollectionShopMapper extends BaseMapper<UserCollectionShop> {

    /**
     * 分页获取用户收藏店铺信息
     * @param page 分页参数
     * @param userId 用户id
     * @param shopName 店铺名称
     * @param renovationType 店铺装修类型
     * @return 分页用户收藏店铺信息
     */
    Page<UserCollectionShopDto> getUserCollectionShopPageByUserId(@Param("page") PageParam page, @Param("userId") String userId, @Param("shopName") String shopName, @Param("renovationType") Integer renovationType);
}
